package presale_house.entity;

import java.util.Vector;

//房子信息
public class HouseDo {
    private int id;
    private String house_layout;//户型
    private String area;//面积
    private String features;//房子特色
    private String state;//售卖情况

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

//    public HouseState getHouse_layout() {
//        return house_layout;
//    }
//
//    public void setHouse_layout(HouseState house_layout) {
//        this.house_layout = house_layout;
//    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getFeatures() {
        return features;
    }

    public void setFeatures(String features) {
        this.features = features;
    }

//    public HouseState getState() {
//        return state;
//    }
//
//    public void setState(HouseState state) {
//        this.state = state;
//    }

    public String getHouse_layout() {
        return house_layout;
    }

    public String getState() {
        return state;
    }

    //返回所有户型
    public Vector<String> getHouseLayouts(){
        Vector<String>data=new Vector<>();
        data.addElement(HouseLayout.APARTMENT);
        data.addElement(HouseLayout.BUNGALOW);
        data.addElement(HouseLayout.PENTHOUSE);
        data.addElement(HouseLayout.RANCH);
        data.addElement(HouseLayout.SINGLE_FAMILY_HOME);
        data.addElement(HouseLayout.TWO_BEDROOM_APARTMENT);
        data.addElement(HouseLayout.SPLIT_LEVEL);
        return data;
    }
    //返回房屋状态
    public Vector<String>getStates(){
        Vector<String>data=new Vector<>();
        data.addElement(HouseState.ALREADY_SELL);
        data.addElement(HouseState.NO_SELL);
        return data;
    }

    public void setHouse_layout(String houseLayout) {
        this.house_layout=houseLayout;
    }

    public void setState(String state) {
        this.state=state;
    }

    @Override
    public String toString() {
        return "HouseDo{" +
                "id=" + id +
                ", house_layout='" + house_layout + '\'' +
                ", area='" + area + '\'' +
                ", features='" + features + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
